package top.xiaoazi.futureletterserver.module.user.vo;

import lombok.Data;
import top.xiaoazi.futureletterserver.module.user.entity.User;

@Data
public class UserResultVO {
    private Integer userId;
    private String username;
    private String nickName;
    private String userImg;
    private String email;
    private Integer balance;
    private Integer usableReplyCount; // 可用的回复评论区次数
    private Integer usableSupportCount; // 可用的三连次数
    private Integer curReadCount; // 当前阅读的文章个数
    private String synopsis;
    private String createTime;

    public UserResultVO(User user) {
        this.userId = user.getUserId();
        this.username = user.getUsername();
        this.nickName = user.getNickName();
        this.userImg = user.getUserImg();
        this.balance = user.getBalance();
        this.usableReplyCount = user.getUsableReplyCount();
        this.usableSupportCount = user.getUsableSupportCount();
        this.synopsis = user.getSynopsis();
        this.createTime = user.getCreateTime();
        this.email = user.getEmail();
    }
}
